package yf.mall.service;

import yf.mall.entity.LotteryActEntity;
import yf.mall.entity.LotteryGoodsEntity;
import yf.mall.vo.LotteryActVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 抽奖活动Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 10:29:43 CST 2020
 */
public interface LotteryActService extends BaseService<LotteryActEntity> {

    /************自动生成**************/
    List<LotteryActVo> findVo(LotteryActVo vo);

        LotteryActVo getVo(Long id);

     int updateVo(LotteryActVo vo);

       int saveVo(LotteryActVo vo);

    void downLoad(HttpServletResponse response, List<LotteryActVo> list);

    List<LotteryActEntity> findByStatus(Integer index);


    /***********BACK***********/




    /***********API
     * @return***********/
    LotteryGoodsEntity startLottery(Long userId, Long actId, Long recordId);


    void updateLottery(Long actId);

    void renew(Long id);

    Boolean lotteryAct();
}
